refactoring image src