optimized hero and main image to jpeg