[Do not merge] Partial image

This is a "draft" about implementing partial image decoding.
opinions and improvements welcome.