pub fn new(data: &[u8]) -> Self {
        let mut image = Image {
            data: Vec::new(),
            id: 0,
        };
        image.modify(data);
        image
    }
/// Creates a new image with a unique ID with the image data provided.
Creates a new image with a unique ID with the image data provided.
Creates a new image with a unique ID with the image data provided .
pub fn new(data: &[u8]) -> Self {
        let mut image = Image {
            data: Vec::new(),
            id: 0,
        };
        image.modify(data);
        image
    }
pub fn new ( data : & [ u8 ] ) -> Self { let mut image = Image { data : Vec :: new ( ) , id : 0 , } ; image . modify ( data ) ; image }
Creates a new image with a unique ID with the image data provided.
Creates a new image with a unique ID with the image data provided .
data
&[u8]
data
&[u8]