Changed the Image format that was being converted to raw byte data to reflect the chosen image format instead of GIF.