modified build script for re and png