changed
pahts for images by using global constant