@todo modifiy url handling for imagefiles