image.h and image.cpp modified (getDepth added, etc)