Updated script for creating SD card image