fixed bug with RCreateImageFromXImage() with mask and image of != sizes