[#392] fixed creation of a new texture using a spritesheet

Note that there is still an issue, as animation are not cycling !
[#392] added an test example