Update function.smartcrop.php

Bug fix