base controller and blog post images controller

ready for review
We should move this out of the view