created a way to show images with the posts