added image download and assignment for posts and a whole bunch of stuff