working on the image attachment issue