helper method for image attachmnt added