Fixed empty-picture crash bug