Fixed bugs associated with displaying the picture view