Error image was not properly returned from the image retrieval class
Incorrect variable names were used in image BMP to JPEG class