fixes #6698: Fixed scrolling on a bitmap image causes 'protocol error detected at the client (code 0x1204)'.