Fixed image uploading

Just made it so we use session data to get username for image uploading
picture.php now autorefreshes again