Fix for a 32 vs 64 bit bug (aka stupid piece of code) preventing image transforms from working properly.