fixed images not being added to db after reaching maxurls