UploadImage class

Changes to edit_plan to use uploadimage class.