JPEG progressive encoding

Fixes #274