fixed problem during opening the picture