init write to 0 when creating image