Inlining small Image functions for performance