fixes for retaining the img_folder value when uploading an image from markItUp! or WYSIWYG