correct image attachment data filter