Scale image appropriately