loading image and processing