Version up. Check image height/width before writing from rows.