refactored the image src generation into a service
Merge pull request #12 from garethdjames/refactorImageSrc

refactored the image src generation into a service