make changes to enable adding of image attachment