create img directory on the fly in R
deleted img directory