Update image path extension