Made a file function for image upload in form.php folder, included it in admin edit pages, made file.php class (which is wrong I think)