resolve pic resize problem