Skip useless memset() when copying a bitmap