unified checking for case insensitive values
Drawing image primitive