Takes byte data and converts it into an image file.