add code to import and append image data