reverted removal of width,heigth storing when adding a picture