Support for texture frame/trimming

[breaking changes with previous logic]
Full review of Texture/SubTexture
Logic related to srcData moved from texture to bitmapdata and
generalized