adding in pic generating support