Print exception on image loading