Add some functions to picture.class.php