adding left and top method for images