Fixed image building script