added mobile check (1024 sprite sheet size max)