jpeg: Allow to edit images with a dimension larger than 16384 px.