add mac compatability, update rwimg version to latest