Handling sizes of the picture.