changed bit depth of image to 8