several bug fixes around image optimization. bumped npm version number