fixed image.cpp