image dimensions
fix strong parameters for empty array