Build image script & DO_SYNC sync flag