Return default scaling factor if frame is invalid
Merge pull request #14 from alexhung/master

Fix scaleFactor() not return default scale if invalid