replace fixed image type with a templated one