updates

SCALE variable added to main to scale down image when necessary