add test for rejected images