giving more credit
refactor snapshot to not wait to send callback and log errors to console
refactor of cleanup service to be async
cleanup interval moved to variable. only display image if preview is on.
cleanup every 1000ms. last commit fixed mem leak.