adding an option to have the width and height