Fixed bug of handling new ubuntu image