move images functionality to utilities folder