Restructure how rotated sprites are handled

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