Converts a .BMP image to .JPEG image.