Image feature story26

Image Feature after making required changes with it's storage on server.
I've seen with function in at least 2 places identically. How about extracting it into a new file/module?