Added try with resources to the data streams
Added support for platforms only supporting per-pixel transparency