Moved reverseBits() from IMGUtils to here