scaled down image to jpg