Unable to receive email notifications if there is an uploaded image