Fix pic resize ratio