pub fn load<R: Read, P: Picture>(
    r: &mut R,
    header: TileHeader,
    has_transparency: bool
) -> Result<P>