image processing utilities for a procedural generation project