Update Image.php

I put the Hook on line 1274. I think this should work so. I'll try this the next days...