implemented BufferedImage
commented out stuff that doesn't work