Register proc as the loader to use for images ending in extension. extension must be a string beginning with a period, the empty string (for files with no extension), or the string "default" (for files that no other image loader succeeds in loading). proc will be called with the full pathname of the image and should return an image object, or #f if it succeeds.