FXImage: Move code that ensures, that non owned pixel data isn't GC'ed to Ruby space.

This way it also works for derived classes like FXJPGImage.