[vector-api] Image rotate and scale

This PR adds image rotation and scaling that was added as part of #1368 (KML).