added scale input and changed initial dimensions of image