Update smart_resize_image.function.php

Added ability to pass image as a string.