Follow-up to c3046ec172. That commit completely replaced the various gs_image_file* structs and functions, but this script was not updated. Use the new structs and functions to fix the script.
c3046ec172