Thanks for the patch.
I'll add it to ImagingComponents unit commented for now for people who use latest Lazarus SVN versions and once new Lazarus release is out I'll comment the current code and make the new one a default (like I did with now current Lazarus release and RawImage interface changes).