reverting the changes made to image_uploader, restarting the nginx server fixed the issue