How to escape a bad image