Image_lib transparency patch: Dealing with "Color index out of range" error.