change parm name from imageData to attachment