I bought it now and is not working, did you resolved it?
And change this function: ob_end_clean();
A friend of mine (Alexis Mejia “the master”) helped me to find the solution, before you have to include this
require_once(‘/../../../wp-load.php’);
$file = “img.jpg”
$path = TEMPLATEPATH.”/../admin/images/”.$file;
obviously everything depends on your project structure!
SOLVED!