added image scaling
added working code for both image border and image container border