Fixed bug in PictureController