You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pixmap.rb
    path of file: ./repos/ruby2d/lib/ruby2d
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Ruby2D::Pixmap

module Ruby2D
  # Error when failed to load an image
  class InvalidImageFileError < Ruby
    
    def initialize(file_path)
      file_path = file_path.to_s
      raise UnknownImageFileError, file_path unless File.exist? file_path

      ext_load_pixmap(file_path)
      raise InvalidImageFileError, file_path unless @ext_pixel_data

      @path = file_path
    end