better error handling on image posts