I'll keep it in here for now.
I'm not sure where it should go - although `Image` class has sanitizeWidht, sanitizeHeight and sanitizeOffset methods, these apply only to current handle - maybe `ImageHelper`/ `ColorHelper` ?