FIX: get_size_from_image_sizes should return [width, height] or nil (PR #9298)

GitHub