create management of png and jpg textures (more compatible levels) and better management of limits