Added scaleToWidth() and scaleToHeight();

Functions to scale ImageFrames to a given Value
fixed a minor bug in scaleToFunctions()