Catch OOM if image is giant