raise error if post does not have a picture