Upgrading get-pixels to handle jpegs