p1: optimize JPEG memory configuration

Only 3.5MB is required for encoding of 1.3M JPEG images (used by FFC).
Note that thumbnail encoding function is not used.

Requires userspace change (http://review.cyanogenmod.org/56795).

Change-Id: I2e048e879271dda6304b7ff9b7f22271830c4021