base controller and blog post images controller

ready for review
indentation is wrong here