Handle sprites stored rotated in a spritesheet

 * bounds of insets are calculated relative to sprite
 * transformations are then applied to get the texture coordinates