updating of MAX_SIZE const for textures to 4096. Closes #647