simplified image.h; more readable