Added image compression and fileUtil.unlink