copy the bitmap in a temporary buffer if the stride doesn't match the width
(needed for GLES v2)

Change-Id: I75be34e220468d64032d90121a830bce989c3803