suppor for gradient images