convert background image to jpeg