refactoring image and image_:thumb paths