Make test invalid image size test work