Adding "raw" packJPG source from the upstream repository (commit 59e8d45d463cfab96155ffccb77b1207b18c614b).