changed sprite textures and added layer depth function