fixed the atlas generating bug with 8-bit png