Update image_generic.hpp