added img resizing