changed images model to posts