New image serialization (faster, but BC break)