Slight refactoring of image service
More tests for PostController