catch jpeg startup errors

thanks mvgulik
bool type was wrong

IM expects a uchar, thanks mvgulik
version bump