minor tweak to image fxns