prelibinary work for image adding