image manipulation functions for Objective Caml
