Added security to image uploader