catching image resize exceptions