image uploading refactored to properly handle edits. Also edited how deletion of posts are handled and now delete post_image entries for the post as well as the image entries in the image table as well as the physical files as well.