Maybe fixed the bug in my delete pictures problem