refactored post model to use own model for images, added tests
Merge pull request #2 from richlewis14/refactor_post_model

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