refactor and and String#image_url helper method