Compress background image and convert to jpg