db_update_images_public_links script fixed