Scale images appropriately