trying to avoid processing graphics files as XML