moving the border to the img element so it works properly when scaled