Drawing an animated gif on a bufferedImage