fix picture width issue when preview