Fix bug in Pictures model