Updated the script for images and wp-content