added new method to factory, getbyimageurl