Alexandre Julliard : winex11: Split copy_image_bits into a couple of helper functions.