Remove unused deletePhoto function. Use Media_Model::delete() instead.