Refactoring for use of images without src tags