Restrict img size.