Added thumbnail resizing and taking care of deleting the images from the filesystem when the post is deleted