first properly working version of the script to save images urls in the database
properly minified script
removed all console statements from the script