Fix attachment image errors