Fixed generating sizes for images