after this, we can safely say that `loadImageData` will be always called with a blob, and therefore we can clean this function