avoid 0 dim images in deserialization