fixed image.cpp
fixed compile errors