added image uploads with posts and new functions