Refactoring image paths