an object that is stored in memory when an image is loaded
the file name of the uploaded file
the raw data of the image
an array of unique hex values found in this image
an array that matches each index in the color array to a color index that it should be grouped with
the HTML image object to write the data into
an 2D array associating every pixel in the image with the id of the associated color in the colors array
a text warning is added if the image file violates rules
an object that is stored in memory when an image is loaded
Param: name
the file name of the uploaded file
Param: data
the raw data of the image
Param: colors
an array of unique hex values found in this image
Param: colors_mapping
an array that matches each index in the color array to a color index that it should be grouped with
Param: image
the HTML image object to write the data into
Param: image_map
an 2D array associating every pixel in the image with the id of the associated color in the colors array
Param: width
Param: height
Param: type
Param: warning
a text warning is added if the image file violates rules