more type compatibility for image:crop