Fix issue with large texture.

On phone maximum texture is 2048 piselx. Cuts the large images and makes
the animation possible with them.
Remove unneeded code.