Fixed error when crop is set to false

When using WP 3.5+ and $crop is set to false, script would return error as there were undefined variables, this commit fixes that.