StillImage* ScriptSupervisor::CreateImage(const std::string& filename)
{
    StillImage* img = new StillImage();
    if(!filename.empty() && !img->Load(filename))
        PRINT_WARNING << "The image file could not be loaded: " << filename << std::endl;
    _still_images.push_back(img);
    return img;
}
int32 ScriptSupervisor::AddImage(const std::string& filename, float width,
									float height) {
	StillImage img;
	if (!img.Load(filename, width, height)) {
		PRINT_WARNING << "The image file could not be loaded: " << filename << std::endl;
		return -1;
	}

	_script_images.push_back(img);

	int32 id = _script_images.size() - 1;
	return id;
}