added functionality

added getImageFile and getImage routines to code