import and download image with new db model structure