made path for images dynamic