bug fixes; loop over images; output ihls image to temp folder