```
def slicer_imlib2(zoom_level, file_path, output_path)
    begin
      tile_size = 256
      file_path = "public/#{file_path}"

      image = Imlib2::Image.load_image file_path

      image_width = image.width
      image_height = image.height
.....
....
    end
      end
      image = nil
    rescue
      return false
    else
      return true
    end
end

```

The begin rescue blocks don't work

I'm getting

```
[Worker()] UserImage#slice_lib failed with Imlib2::Error::DeletedError: image deleted - 0 failed attempts
[Worker()] UserImage#slice_lib failed with Imlib2::Error::DeletedError: image deleted - 0 failed attempts
[Worker()] UserImage#slice_lib failed with Imlib2::Error::DeletedError: image deleted - 0 failed attempts
[Worker()] 3 jobs processed at 32.5508 j/s, 3 failed ...

```

I'm trying to return false if im getting Imlib2::Error::DeletedError: image deleted