Image borders and scaling