loader: Add load_image_size() to replace load_image()