Revert "HACK to avoid expensive and pointless deflating of jpeg files"

This reverts commit 8c10cb5edc6902a96dc265d36faad0a8382b1a4a.
Simplify input parameters to just take the sequence

Change-Id: Ic2538ca8b0f7261064e1dfbf3884dd452003c797