fix scale image border