mkinput: Add crop size function