BUG:390382 Crop image to handle offset.
This is a bit slower, but at the least more correct(and I couldn't reposition the layer any other way)