Image utility functions for node.