Many bugs fixed. Still does not work though. The 'mv' command in
RawtoImgGenerator fails.