Re-add the setwd(owd) before im.convert