extend BufferedImage class
generate gray scale iamge