Bugfix in jpeg plugin to avoid missing header frame and image size