handled atlas file creation when loading images
Texture: support atlas in constructor + load event is not fired until atlas is loaded