try to read data using file io instead of StringIO
Revert "try to read data using file io instead of StringIO"

This reverts commit ec3dcd13cf8f0c08aed2ceed6210131e8975600e.
fix RGBA decode support