Better texture handling. Textures are not added to atlas if they are big, and atlas is not further made after it is full.