Introduce a scalei keyword to support user-supplied image scaling