INIT: shell code to write functions for reading images