Move CreateImageUrl method to config object

Update tests