refactored post model to use own model for images, added tests