Implemented opening of images