add change the size of picture using js